<?php
/**
 * @Author: Marte
 * @Date:   2017-08-08 17:50:08
 * @Last Modified by:   Marte
 * @Last Modified time: 2017-08-08 18:06:18
 */



header('Content-Type:text/html;charset=utf-8');
include "../config_connect.php";//导入数据库
$verify = stripslashes(trim($_GET['verify']));
$nowtime = time();
$query = $_mysql->query("select * from userregisters where status='0' and
'token'='$verify'");
$_array=$query->fetch_array();
if($_array){

    if($_mysql->query("update userregisters set status=1 where 'token'='$verify'")
    {
        echo "<script>alert('chenggong');</script>";
    }


}else{
  echo "<script>alert('error');</script>";
}





























?>